from odoo import api, fields, models
from odoo.exceptions import UserError


class ResConfigSettings(models.TransientModel):
    _inherit = 'res.config.settings'

    rp_google_client_id = fields.Char(string='client_id', config_parameter='google_auth_login.rp_google_client_id')
    rp_google_client_secret = fields.Char(string='client_secret', config_parameter='google_auth_login.rp_google_client_secret')
    rp_google_redirect_uri = fields.Char(string='redirect_uri', config_parameter='google_auth_login.rp_google_redirect_uri')
    
    rp_google_firebase_apiKey = fields.Char(string="apiKey", config_parameter='rp_google_firebase_apiKey')
    rp_google_firebase_authDomain = fields.Char(string="authDomain", config_parameter='rp_google_firebase_authDomain')
    rp_google_firebase_projectId = fields.Char(string="projectId", config_parameter='rp_google_firebase_projectId')
    rp_google_firebase_storageBucket = fields.Char(string="storageBucket", config_parameter='rp_google_firebase_storageBucket')
    rp_google_firebase_messagingSenderId = fields.Char(string="messagingSenderId", config_parameter='rp_google_firebase_messagingSenderId')
    rp_google_firebase_appId = fields.Char(string="appId", config_parameter='rp_google_firebase_appId')
    rp_google_firebase_measurementId = fields.Char(string="measurementId", config_parameter='rp_google_firebase_measurementId')
